m=1;
main(n){
	char a[m];
	for(n=0;read(0,a+n,1)&&a[n++]-10;);
	sscanf(a,"%d%d",&n,&n);
	for(--n;n-=read(0,a,n>m?m:n););
	for(;read(0,a,m);write(1,a,m));
}
